<html>
<head>
<meta charset="utf8" />
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<title>Iframe replacement test.</title>
</head>
<body>
    <p>This is a test for https://github.com/servo/servo/issues/11546.</p>
</body>
<script>
    async_test(function(t) {
    setTimeout(t.step_func(function() {
        var frame = document.createElement('iframe');
        frame.src = "data:text/html,<p>test</p>";
        document.body.appendChild(frame);
        setTimeout(t.step_func(function() {
        document.body.removeChild(frame);
        frame = document.createElement('iframe');
        frame.src = "data:text/html,<p>test</p>";
        document.body.appendChild(frame);
        setTimeout(t.step_func(function() {
            t.done();
        }), 100);
        }), 100);
    }), 100);
    });
</script>
</html>
